package com.yowasa.xiuxian.engine.item.zhuangbei.wuqi;

import com.yowasa.xiuxian.annoations.Item;
import com.yowasa.xiuxian.engine.item.ItemInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ItemTypeEnum;
import com.yowasa.xiuxian.entity.enums.QualityEnum;


@Item(name = "飞雷之弦振", type = ItemTypeEnum.WU_QI, price = 30000)
public class FeiLeiZhiXianZhen implements ItemInterface {

    private String attrJson = "{" +
            "\"hp\":0," +
            "\"mp\":0," +
            "\"atk\":75," +
            "\"spell\":75," +
            "\"def\":0," +
            "\"res\":0," +
            "\"imm\":0," +
            "\"spd\":300," +
            "\"quality\":0" +
            "}";


    @Override
    public String desc() {
        return "雷光灼灼的铭弓，即使被浓稠黑暗洗濯，依旧不失神采。\n" +
                "当漆黑的秽毒沉入大地，复归平静之时，剑豪并未归来。\n" +
                "而作为豪赌的胜果，将军御赐的铭弓被交予巫女的手里。\n" +
                "自渊薮蹒跚而来的孤独归人，终又与不再年轻的巫女再逢。\n" +
                "血泪干涸的漆黑眼眸重获神采，却被威光闪烁的钩矢射穿。";
    }

    @Override
    public String effect(UserBO userBO) {
        if (!userBO.getUserConfig().getBattleStrategyList().contains("飞雷御执")){
            userBO.getUserConfig().getBattleStrategyList().add("飞雷御执");
        }
        return "现在可以使用飞雷御执了！！！";
    }

    @Override
    public String removeEffect(UserBO userBO) {
        if (userBO.getUserConfig().getBattleStrategyList().contains("飞雷御执")){
            userBO.getUserConfig().getBattleStrategyList().remove("飞雷御执");
        }
        return "遗忘了飞雷御执！！！";
    }


    //血，蓝，     物攻，     法攻，    物抗，    法抗，    免疫，    速度
    //{"hp":603,"chp":603,"mp":97,"cmp":97,"atk":26,"spell":14,"def":38,"res":14,"imm":25,"spd":243}
    public String attr(QualityEnum qualityEnum){
        String attr = getAttr(qualityEnum, attrJson);
        return attr;
    }

}

